﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_User.master" AutoEventWireup="true" CodeFile="ThueCD.aspx.cs" Inherits="ThueCD" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td>
                <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False"
                    onrowdeleting="GridView5_RowDeleting1" >
                    <Columns>
                        <asp:BoundField DataField="MaPhim" HeaderText="Mã phim" />
                        <asp:BoundField DataField="TenPhim" HeaderText="Tên phim" />
                        <asp:TemplateField HeaderText="Số lượng">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("SoMuon") %>'></asp:TextBox>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SoMuon") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="GiaThue" HeaderText="Đơn giá" />
                        <asp:BoundField DataField="ThanhTien" HeaderText="Thành tiền" />
                        <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp;<asp:Label ID="Label1" runat="server"></asp:Label>
                &nbsp;<br />
&nbsp;<asp:Button ID="btnLuu" runat="server" onclick="btnLuu_Click" 
                    Text="Cập nhật" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
        </tr>
    </table>
</asp:Content>

